home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 4
/
Gold Medal Software - Volume 4 (Gold Medal) (1994).iso
/
os2
/
fsortd.arj
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-07-12
|
1KB
|
48 lines
/* */
arg install_pathname
/* say install_pathname */
if install_pathname = "" then do
say 'INSTALL REQUIRES A PATHNAME PARAMETER.'
say
say ' EXAMPLE: "INSTALL C:\FSORT" '
exit 1
end
call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
call SysLoadFuncs
current_directory=directory()
/* say current_directory */
syssearchpath=SysSearchPath('PATH','AUTOEXEC.BAT')
/* say syssearchpath */
os2_drive=substr(syssearchpath,1,2)
install_drive=substr(install_pathname,1,2)
sysdriveinfo = SysDriveInfo(install_drive)
parse var sysdriveinfo install_drive install_free install_total install_label
/* say install_drive install_free install_total install_label */
call SysSleep 1
if install_free < 500000 then
Say 'Not enough space on drive'
If SysCreateObject("WPProgram","FSORT DOC","<WP_DESKTOP>","EXENAME=VIEW.EXE;PARAMETERS="install_pathname"\FSORT.INF","replace") then
Say 'program "FSORT FOLDER" has been created'
Else Say 'Could not create program "FSORT FOLDER"'
call SysSleep 1
"MKDIR" install_pathname
call SysSleep 1
"COPY *.* " install_pathname
call SysSleep 1
'config.exe' os2_drive install_pathname
say
say install_pathname "HAS BEEN ADDED TO" os2_drive"\CONFIG.SYS"
say "BE SURE TO REBOOT OS/2 TO PICK UP THE NEW PATHNAME."